﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMyScore extends IMessageBase
    {
        public var killPlayer:int;
        public var killBoss:int;
        public var honor:int;
        public var assist:int;
        public var continuityKill:int;
        public var instantKill:int;
        public var killed:int;
        public var hasTask:int;
        public var secLeft:int;
        public var isFinal:Boolean;
        public var isWin:Boolean;
        public const _type:int = 5054;
        public static var _regist:SMyScore = new SMyScore(true);

        public function SMyScore(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SMyScore();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.killPlayer);
            param1.writeInt(this.killBoss);
            param1.writeInt(this.honor);
            param1.writeInt(this.assist);
            param1.writeInt(this.continuityKill);
            param1.writeInt(this.instantKill);
            param1.writeInt(this.killed);
            param1.writeInt(this.hasTask);
            param1.writeInt(this.secLeft);
            param1.writeBool(this.isFinal);
            param1.writeBool(this.isWin);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.killPlayer = param1.readInt();
            this.killBoss = param1.readInt();
            this.honor = param1.readInt();
            this.assist = param1.readInt();
            this.continuityKill = param1.readInt();
            this.instantKill = param1.readInt();
            this.killed = param1.readInt();
            this.hasTask = param1.readInt();
            this.secLeft = param1.readInt();
            this.isFinal = param1.readBool();
            this.isWin = param1.readBool();
            return;
        }// end function

    }
}
